package com.yy.wga.business.service.controller;


import com.yy.wga.mp.module.business.response.BusinessCourseInfoResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商学院课程
 *
 * @author guochao
 * @since 2025-02-09 15:18:37
 */
@RestController
@RequestMapping("/api/business/course")
public class BusinessCourseController {
    /**
     * 服务对象
     */
    @Resource
    private BusinessCourseService businessCourseService;

    /**
     * 获取课程列表
     * @return
     */
    @PostMapping("list")
    public Result<List<BusinessCourseInfoResponse>> page() {
        List<BusinessCourseInfoResponse> pageBean = businessCourseService.listData();
        return Result.success(pageBean);
    }
}
